<ul class="tabs">
    <li <?php if (strtoupper($this->view->type) == 'FOLLOWING')
            echo 'class="active"'; 
            if(isset($_SESSION['userid'])) 
                echo 'style="display: inherit;"'; 
            else echo 'style="display: none;"'; ?>>
        <a href="<?php echo $this->baseUrl ?>shots/following">Following</a>
    </li>
    <li <?php if (strtoupper($this->view->type) == 'POPULAR' || (strtoupper($this->view->type) == "FOLLOWING" && !isset($_SESSION['userid']))) echo 'class="active"'; ?>>
        <a href="<?php echo $this->baseUrl ?>shots/popular">Popular</a>
    </li>
    <li <?php if (strtoupper($this->view->type) == 'EVERYONE') echo 'class="active"' ?>>
        <a href="<?php echo $this->baseUrl ?>shots/everyone">Everyone</a>
    </li>
    <li <?php if (strtoupper($this->view->type) == 'DEBUTS') echo 'class="active"' ?>>
        <a href="<?php echo $this->baseUrl ?>shots/debuts">Debuts</a>
    </li>
</ul>
<ol class="dribbbles group">
    <?php include "SinglePhoto.php"; ?>
</ol>
<a href="" class="rss">RSS</a>
<div class="page">
    <div class="pagination">
        <a style="<?php if ($this->view->page - 1 == 0) echo "display: none;";
    else echo "display: initial;"; ?>" class="previous_page" rel="prev start" href="<?php if (isset($this->view->date))
               echo "?date=" . $this->view->date . "&&page=" . ($this->view->page - 1);
           else
               echo "?page=" . ($this->view->page - 1);
    ?>">← Newer</a>
        <a style="<?php if(sizeof($this->statuses) == 0) echo "display: none;"; else
        if ($this->view->date) {
            $page = Status::getPhotoCount($this->view->length, $this->view->date);
        } else {
            $page = Status::getPhotoCount($this->view->length);
        }
        if ($this->view->page >= $page)
            echo "display: none;";
        else
            echo "display: initial;";
        ?>" class="next_page" rel="next" href="<?php
           if ($this->view->date)
               echo "?date=" . $this->view->date . "&&page=" . ($this->view->page + 1);
           else
               echo "?page=" . ($this->view->page + 1);
        ?>">Older →</a>
    </div>
</div>
